package com.ideal.hbase.client.mapper.impl;
/*
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.util.Bytes;

import com.hbase.entity.TraceV222BO;
import com.ideal.hbase.client.HBaseTables;
import com.ideal.hbase.client.core.mapper.RowMapper;
import com.sematext.hbase.wd.RowKeyDistributorByHashPrefix;

public class TraceV222Mapper implements RowMapper<List<TraceV222BO>>{
	
	 private RowKeyDistributorByHashPrefix rowKeyDistributorByHashPrefix;
	    
	    private final static String SQL_METADATA_CF_SQL_QUALI_SQLSTATEMENT = Bytes.toString(HBaseTables.SQL_METADATA_VER2_CF_SQL_QUALI_SQLSTATEMENT);
	    
	    
	    @Override
		public List<TraceV222BO> mapRow(Result result, int rowNum) throws Exception {
	    	if (result.isEmpty()) {
	            return Collections.emptyList();
	        }
	        final byte[] rowKey = getOriginalKey(result.getRow());
	        List<TraceV222BO> traceV222BOList = new ArrayList<>();
	        Cell[] rawCell = result.rawCells();
	        for (Cell cell : rawCell) {
	        	TraceV222BO traceV222BO = new TraceV222BO();
	        	
	        }
	        return null;
	        	
		}
	    
	    
	    @Override
	    public List<SqlMetaDataBo> mapRow(Result result, int rowNum) throws Exception {
	        if (result.isEmpty()) {
	            return Collections.emptyList();
	        }
	        final byte[] rowKey = getOriginalKey(result.getRow());

	        List<SqlMetaDataBo> sqlMetaDataList = new ArrayList<>();
	        Cell[] rawCell = result.rawCells();
	        for (Cell cell : rawCell) {
	            SqlMetaDataBo sqlMetaDataBo = new SqlMetaDataBo();
	            sqlMetaDataBo.readRowKey(rowKey);
	            String sql = Bytes.toString(cell.getQualifierArray(), cell.getQualifierOffset(), cell.getQualifierLength());

	            if (SQL_METADATA_CF_SQL_QUALI_SQLSTATEMENT.equals(sql)) {
	                sql = Bytes.toString(cell.getValueArray(), cell.getValueOffset(), cell.getValueLength());
	            }

	            sqlMetaDataBo.setSql(sql);
	            sqlMetaDataList.add(sqlMetaDataBo);
	        }
	        return sqlMetaDataList;
	    }

	    private byte[] getOriginalKey(byte[] rowKey) {
	        return rowKeyDistributorByHashPrefix.getOriginalKey(rowKey);
	    }
	    
	    public void setRowKeyDistributorByHashPrefix(RowKeyDistributorByHashPrefix rowKeyDistributorByHashPrefix) {
	        this.rowKeyDistributorByHashPrefix = rowKeyDistributorByHashPrefix;
	    }

	

}
*/